package com.alex.service;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Author: 葛成瑞
 * @Date: 2025/4/16 10:48
 */
public class GcrTest {
    public static void main(String[] args) {
        String as = "J Clin Invest[TA]";
        Pattern pattern = Pattern.compile(".*\\[([a-zA-Z]+)\\]");
        Matcher matcher = pattern.matcher(as);
        if (matcher.find()) {
            String match = matcher.group(1);
            System.out.println("++"+match+"+++");


        }

    }
}
